package com.yuwenxin.bean;

import java.util.HashSet;

public class MusicList {
    private int id;
    private String MusiclistName;
    private String musiclistPhotoPath;
    private HashSet<Music> musicList = new HashSet<>();

    // 一个外键
    private int relativeUserId;
    private User relativeUser;

    public User getRelativeUser() {
        return relativeUser;
    }

    public void setRelativeUser(User user) {
        this.relativeUser = user;
    }

    public int getRelativeUserId() {
        return relativeUserId;
    }

    public void setRelativeUserId(int relativeUserId) {
        this.relativeUserId = relativeUserId;
    }

    public String getMusiclistPhotoPath() {
        return musiclistPhotoPath;
    }

    public void setMusiclistPhotoPath(String musiclistPhotoPath) {
        this.musiclistPhotoPath = musiclistPhotoPath;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMusiclistName() {
        return MusiclistName;
    }

    public void setMusiclistName(String musiclistName) {
        MusiclistName = musiclistName;
    }

    public HashSet<Music> getMusicList() {
        return musicList;
    }

    public void setMusicList(HashSet<Music> musicList) {
        this.musicList = musicList;
    }

    @Override
    public String toString() {
        return "MusicList{" +
                "id=" + id +
                ", MusiclistName='" + MusiclistName + '\'' +
                ", musiclistPhotoPath='" + musiclistPhotoPath + '\'' +
                ", musicList=" + musicList +
                ", relativeUserId=" + relativeUserId +
                ", relativeUser=" + relativeUser.toString() +
                '}';
    }
}
